import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'mic_seat_widget_model.dart';

class DoufengMicSeatWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    var model = context.watch<MicSeatWidgetModel>();
    return Padding(
      padding: const EdgeInsets.only(top: 20),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          _buildFirstRow(model),
        ],
      ),
    );
  }

  Widget _buildFirstRow(MicSeatWidgetModel model) {
    // var item0 = model.channel?.broadcaster[0];
    // var item1 = model.channel?.broadcaster[1];
    return Row(
      mainAxisAlignment: MainAxisAlignment.spaceAround,
      children: [
        Text('MicSeatItemWidget'),
        // MicSeatItemWidget(
        //   item: item0,
        //   width: 70,
        //   position: 0,
        // ),
        // MicSeatItemWidget(
        //   item: item1,
        //   width: 70,
        //   position: 1,
        // ),
      ],
    );
  }
}
